package com.lagou.edu.service.impl;

import com.lagou.edu.service.TokenService;
import com.lagou.edu.service.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private TokenService tokenService;

    @Override
    public boolean isRegistered(String email) {
        return tokenService.isRegistered(email);
    }
}
